Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move uncompress_file function from airflow.utils to Hive provider #43526

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

kaxil
Copy link
Member

@kaxil kaxil commented Oct 30, 2024

It was only used in S3 To Hive module. One less thing in the utils directory.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@kaxil kaxil requested a review from eladkal October 30, 2024 21:28
@kaxil kaxil changed the title Move uncompress_file from airflow.utils to Hive provider Move uncompress_file function from airflow.utils to Hive provider Oct 30, 2024
It was only used in S3 To Hive module. One less thing in the `utils` directory.
@kaxil kaxil requested a review from jscheffl October 30, 2024 21:34
@kaxil kaxil merged commit 51f9e83 into apache:main Oct 30, 2024
75 of 77 checks passed
@kaxil kaxil deleted the move-uncompress branch October 30, 2024 22:09
from tempfile import NamedTemporaryFile


def uncompress_file(input_file_name, file_extension, dest_dir):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this part of the public APi? If so we need newsfargment for Airflow 3 as its a breaking change

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, not a part of the public interface as mentioned in https://airflow.apache.org/docs/apache-airflow/stable/public-airflow-interface.html

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naaa. That's too niche :)

ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
…apache#43526)

It was only used in S3 To Hive module. One less thing in the `utils` directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants